package com.zj.core.view

import android.content.Context
import android.util.AttributeSet
import android.widget.TextView
import com.fileutils.SPUtils
import com.log.Logger
import com.zj.core.base.BaseApplication
import com.zj.core.tools.Constant.Companion.MEAUSE_TEXT_VALUE
import com.zj.core.tools.Constant.Companion.meuseTextViewWidth

class MeuseTextView : TextView {  //meuseEditViewWidth
    constructor(context: Context) : super(context)

    constructor(context: Context, attrs: AttributeSet) : super(context, attrs)

    constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr)

    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec)
        meuseTextViewWidth=MeasureSpec.getSize(widthMeasureSpec)
        //SPUtils.put(BaseApplication.context,MEAUSE_TEXT_VALUE,MeasureSpec.getSize(widthMeasureSpec))
    }
}